<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改企业基本')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-company-edit" th:object="${company}">
            <input id="cid" name="cid" th:field="*{cid}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">企业全称：</label>
				<div class="col-sm-8">
					<input id="fullname" name="fullname" th:field="*{fullname}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">企业简称：</label>
				<div class="col-sm-8">
					<input id="samplename" name="samplename" th:field="*{samplename}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">统一社会信用代码：</label>
				<div class="col-sm-8">
					<input id="usccode" name="usccode" th:field="*{usccode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册号：</label>
				<div class="col-sm-8">
					<input id="regcode" name="regcode" th:field="*{regcode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">法人：</label>
				<div class="col-sm-8">
					<input id="legalperson" name="legalperson" th:field="*{legalperson}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册资金：</label>
				<div class="col-sm-8">
					<input id="capital" name="capital" th:field="*{capital}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">成立日期：</label>
				<div class="col-sm-8">
					<input id="esdate" name="esdate" th:field="*{esdate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">营业期限自：</label>
				<div class="col-sm-8">
					<input id="busstart" name="busstart" th:field="*{busstart}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">营业期限至：</label>
				<div class="col-sm-8">
					<input id="busend" name="busend" th:field="*{busend}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">登记机关：</label>
				<div class="col-sm-8">
					<input id="regauthority" name="regauthority" th:field="*{regauthority}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">核准日期：</label>
				<div class="col-sm-8">
					<input id="apprdate" name="apprdate" th:field="*{apprdate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">登记状态：</label>
				<div class="col-sm-8">
					<input id="regstatus" name="regstatus" th:field="*{regstatus}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">住所：</label>
				<div class="col-sm-8">
					<input id="address" name="address" th:field="*{address}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">经营范围：</label>
				<div class="col-sm-8">
					<input id="busscope" name="busscope" th:field="*{busscope}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/company";
		$("#form-company-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-company-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
